
<div class="pageContent">


	<form method="post" action="__URL__/update/navTabId/__MODULE__?callbackType=closeCurrent" class="pageForm required-validate" onsubmit="return validateCallback(this, dialogAjaxDone)">
		<input type="hidden" name="user_id" value="<?php echo $_SESSION[C('USER_AUTH_KEY')] ?>"/>
		<input type="hidden" name="id" value="{$vo.id}" />
		<div class="pageFormContent" layoutH="58">
			<div class="unit">
				<label>商品编号：</label>
				<input type="text" class="required" name="commodity_id" readonly="true" value="{$vo.commodity_id}" />
			</div>
            <div class="unit">
                <label>商品名称：</label>
                <input type="text" class="required" name="name" value="{$vo.name}" />
            </div>
			<div class="unit">
				<label>销售周期：</label>
                <input type="text" size="60" class="required" name="sale_cycle" value="{$vo.sale_cycle}" />
			</div>
			<div class="unit">
				<label>商品规格：</label>
				<input type="text" class="required" name="spec" value="{$vo.spec}" />
			</div>
			<div class="unit">
				<label>产地：</label>
				<input type="text" name="origin" value="{$vo.origin}" />
			</div>
			<div class="unit">
				<label>单位：</label>
				<select name="unit_id">
					<php>foreach(C('GOODS_UNIT_NAME') as $k=>$v){</php>
						<option value="{$k}" <?php if($vo['unit_id']==$k) echo "selected";?>>{$v}</option>
					<php>}</php>
				</select>
			</div>
			<div class="unit">
				<label>供应期：</label>
				<input type="text" name="supply_begin" class="date" dateFmt="yyyy-MM-dd" readonly="true" value="{$vo.supply_begin}" /><a class="inputDateButton" href="javascript:;">选择</a>
				<label style="width:30px;">&nbsp;&nbsp;至</label>
				<input type="text" name="supply_end" class="date" dateFmt="yyyy-MM-dd" readonly="true" value="{$vo.supply_end}" /><a class="inputDateButton" href="javascript:;">选择</a>
			</div>
			<div class="unit">
				<label>市场价格：</label>
				<input type="text" class="required" name="market_price" value="{$vo.market_price}" />
			</div>
			<div class="unit">
				<label>销售价格：</label>
				<input type="text" class="required" name="sale_price" value="{$vo.sale_price}" />
			</div>
			<div class="unit">
				<label>商品简介：</label>
				<input type="text" class="required" name="brief_desc" value="{$vo.brief_desc}" size="60" />
			</div>
			<div class="unit">
				<label>排序：</label>
				<input type="text" class="required" name="sort" value="{$vo.sort}" size="10" />
			</div>
			<div class="unit">
				<label>商品详情：</label>
				<textarea name="desc" rows="3" cols="57">{$vo.desc}</textarea>
			</div>
			
		</div>
		<div class="formBar">
			<ul>
				<li><div class="buttonActive"><div class="buttonContent"><button type="submit">提交</button></div></div></li>
				<li><div class="button"><div class="buttonContent"><button type="button" class="close">取消</button></div></div></li>
			</ul>
		</div>
	</form>
	
</div>

